
import { UserModule } from "@/store/modules/user";
import { BaseEventBus } from "../eventBus/base";
import { UserInfo } from "../model/userInfo";


export class MicAppProps <EventBusType=any>{
  public container?: string | HTMLElement = "#app"; //容器
  public eventBus:BaseEventBus<EventBusType> = new BaseEventBus()
  public getUserInfo: () => UserInfo=()=>{ //获取用户信息
    return {
     userId:UserModule.loginInfo?.userId,
     sessionId:UserModule.loginInfo?.sessionId
    }
  }
  
}

